package com.suray.rgv.fork.core;

import com.suray.rgv60.core.Rgv60Info;

public class RgvForkInfo {
    protected Rgv60Info rgv60Info;

    /**
     * 叉车取放货时抬升的高度, 单位mm
     */
    protected Integer forkLiftDis;

    /**
     * 叉车货叉下降时的高度, 单位mm
     */
    protected Integer forkLiftDownHeight;

    /**
     * 叉车货叉误差范围, 单位mm
     */
    protected Integer forkHeightErrorRange;

    /**
     * 叉车带货行驶高度, 单位mm
     */
    protected Integer forkHeightRunWithCargo;

    public RgvForkInfo(Rgv60Info rgv60Info) {
        this.rgv60Info = rgv60Info;
        this.forkHeightRunWithCargo = 200;
    }

    public Float getForkLiftDis() {
        return forkLiftDis.floatValue() / 1000;
    }

    public Float getForkLiftDownHeight() {
        return forkLiftDownHeight.floatValue() / 1000;
    }

    public Float getForkHeightErrorRange() {
        return forkHeightErrorRange.floatValue() / 1000;
    }

    public Float getForkHeightRunWithCargo() {
        return forkHeightRunWithCargo.floatValue() / 1000;
    }
}
